//
//  FilterDataResModel.swift
//  koolcar
//
//  Created by xiantian on 2023/11/27.
//

import UIKit
import ObjectMapper

class FilterDataResModel: Mappable {
    var code : String?
    var data : FilterDataModel?
    var msg : String?
    required init?(map: ObjectMapper.Map) {
        
    }
    
    func mapping(map: ObjectMapper.Map) {
        code <- map["code"]
        data <- map["data"]
        msg <- map["msg"]
    }
}

class FilterDataModel: Mappable {
    var bodyCDs : [String]?
    var katashikiList : [KatashikiListData]?
    var sellingPriceType : [SellingPriceTypeData]?
    
    required init?(map: ObjectMapper.Map) {
        
    }
    
    func mapping(map: ObjectMapper.Map) {
        bodyCDs <- map["bodyCDs"]
        katashikiList <- map["katashikiList"]
        sellingPriceType <- map["sellingPriceType"]
        
    }
}


class KatashikiListData: Mappable {
    var brandId : String?
    var brandName : String?
    var first : String?
    var katashiki : [String]?
    var isSelect: Bool = false
    required init?(map: ObjectMapper.Map) {
        
    }
    
    func mapping(map: ObjectMapper.Map) {
        brandId <- map["brandId"]
        brandName <- map["brandName"]
        first <- map["first"]
        katashiki <- map["katashiki"]
    }
    init(){}
}

class SellingPriceTypeData: Mappable {
    var code : Int?
    var desc : String?
    
    required init?(map: ObjectMapper.Map) {
        
    }
    
    func mapping(map: ObjectMapper.Map) {
        code <- map["code"]
        desc <- map["desc"]
        
    }
    init(){}
}

